package com.vanysoft.framework.config.database;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.fasterxml.jackson.annotation.JsonIgnore;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 核心实体类
 *
 * @author qi_ma
 */


public class BaseEntity<T> implements Serializable {
    private static final long serialVersionUID = -2578938160867774845L;
    @TableId("ID")
    private String id;
    /**
     * 4个常用数据库字段默认不返回前端页面，只用于database检查
     */
    @TableField("CREATE_USER")
    @JsonIgnore
    private String createUser;
    @TableField("CREATE_TIME")
    @JsonIgnore
    private LocalDateTime createTime;
    @TableField("MODIFY_USER")
    @JsonIgnore
    private String modifyUser;
    @TableField("MODIFY_TIME")
    @JsonIgnore
    private LocalDateTime modifyTime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public String getModifyUser() {
        return modifyUser;
    }

    public void setModifyUser(String modifyUser) {
        this.modifyUser = modifyUser;
    }

    public LocalDateTime getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(LocalDateTime modifyTime) {
        this.modifyTime = modifyTime;
    }
}
